package com.tuanzi.loan.business.repository.settlementsystem.custom;

import com.tuanzi.loan.business.entity.settlementsystem.SettlementCompany;
import com.tuanzi.loan.vo.request.settlementsystem.SettlementCompanyAmountRequest;
import com.tuanzi.loan.vo.request.settlementsystem.SettlementCompanyRequest;
import com.tuanzi.loan.vo.response.settlementsystem.SettlementCompanyResponse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author caiwanlin
 * @create 2018-08-16 15:35
 */
public interface SettlementCompanyRepositoryCustom {
    Page<SettlementCompanyResponse> list(SettlementCompanyRequest searchRequest, Pageable pageable);

    Page<SettlementCompanyResponse> listAmount(SettlementCompanyAmountRequest searchRequest, Pageable pageable);

    List<SettlementCompany> getCompanyList();

    /**
     * 更新消耗金额
     * @param companyId
     * @param expendAmount
     */
    void updateExpendAmount(Long companyId,Double expendAmount);


    /**
     * 更新预付金额
     * @param companyId
     * @param expendAmount
     */
    void updatePrepayAmount(Long companyId,Double prepayAmount);
}
